import React, { Component } from 'react'

export default class TestPage extends Component {
    componentDidMount() {
        //console.log(this.props.match.params);
        console.log(this.props.history.location.state);
        alert("接收参数"+ this.props.history.location.state.id)
    }
    render() {
        return (
            <div>
                <h1>我是测试页面</h1>
            </div>
        )
    }
}
